#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "data_forward.h"

/*
2   1       2       2       1              1        1       2
head length wanAddr lanAddr version subprotocol checksum end
5a55   0x0c     00 00   0101    00      aa        67    6a69  
*/

int main(int argc, char const *argv[])
{
    //printf("hello");
    uint8_t arr[123] = {0x5a, 0x55, 0x0c, 0x00, 0x00, 0x01, 0x01, 0x00, 0xaa, 0x67, 0x6a, 0x69};
    uint8_t *p = (uint8_t *)malloc(124);
    memcpy(p, arr, 123);
    int i = 0;
    for(i=0;i<12;i++) {
        Lora_Data_Recv_Handler(p[i]);
    }

    return 0;
}
